package com.pan.hisystem.service;

import com.pan.hisystem.pojo.Registration;
import com.baomidou.mybatisplus.extension.service.IService;
import com.pan.hisystem.pojo.RespBean;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author qingyang
 * @since 2022-03-13
 */
public interface IRegistrationService extends IService<Registration> {

    /**
     * 根据卡号获取挂号记录
     * @param mid
     * @return
     */
    List<Registration> getRecordByMid(String mid);

    /**
     * 添加挂号和就诊记录
     * @param registration
     * @param id
     * @return
     */
    RespBean addRegistrationAndOutPatient(Registration registration, Integer id);
}
